#!/bin/bash

platforms=(esp8266\ pic32mz)

if [[ " ${platforms[@]} " =~ " $1 " ]]; then
  source ./platform/$1/env
  make $2 clean
else
  echo "Unsupported platform"
fi
